package com.zmx.job.admin.controller.login;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @ClassName: IndexController
 * @Author zhaomxr
 * @Date 2021-12-22 10:11
 */
@Controller
public class IndexController {

    @RequestMapping("/")
    public String code() {
        return "login";
    }

    @RequestMapping("/log")
    public String log(Model model, @RequestParam(name = "name") String name) {
        model.addAttribute("name", name);
        return "log";
    }

    @RequestMapping("/jobList")
    public String jobList() {
        return "jobList";
    }

    @RequestMapping("/nodeList")
    public String nodeList() {
        return "nodeList";
    }
}
